package jvm.classloader;

public class Test8 {
    public static void main(String[] args) throws Exception {
        ClassLoader loader = ClassLoader.getSystemClassLoader();
        //加载
        Class<?> clazz = loader.loadClass("jvm.classloader.CL");
        System.out.println(clazz);

        System.out.println("=======================");

        //初始化
        clazz = Class.forName("jvm.classloader.CL");
        System.out.println(clazz);
    }
}

class CL {
    static {
        System.out.println("Class CL");
    }

}
